package fr.ajicommerce.core.dao.generics;

import java.util.List;
import java.util.Map;

public interface AbstractDAO<T, PK> {
	
	public void save(T entity);
	public void delete(T entity);
	public T update(T entity);
	public T merge(T entity);
	public void detach(T entity);
	
	public T find(Long entityID);
	public List<T> findAll();
	public T findOneResult(String namedQuery, Map<String, Object> parameters);
}
